package com.yh.patterns.decorator.view;
/**
 * @Auther:云尚学Java
 * 滚动条类
 */
public class Roll extends ViewDecorator{

    public Roll(Component component) {
        super(component, "滚动条");
    }

    @Override
    public String getDesc() {
        return super.getDesc()+getComponent().getDesc();
    }
}
